const array = ["2022-05-06", "2022-08-06", "2022-05-06", "2022-05-06", "2022-05-06"]
let newArray = array.filter((item, index) => {
    return array.indexOf(item) === index

    /*
    0==0    2
    1==1    3
    2==2    4
    3==3    1
    */
})

console.log(newArray)  
